import HomePage from '../pages/HomePage'
import Category from '../pages/Category';
import ShoppingCart from '../pages/ShoppingCart';
import PersonalCenter from '../pages/PersonalCenter';
import SearchPage from '../pages/SearchPage';
import Login from '../pages/Login';
import Error from '../pages/Error';
import MyOrders from '../pages/MyOrders';
import AddressManagement from '../pages/AddressManagement';
import AccountManagement from '../pages/AccountManagement';
import CreateOrders from '../pages/CreateOrders'
import AboutUs from '../pages/AboutUs';
import ProductDetails from '../pages/ProductDetailsPage';
import AddressEdit from '../pages/AddressEdit';
import OrderDetail from '../pages/OrderDetail';
export const routerMap = [{
    path: '/',
    name: 'HomePage',
    element: <HomePage />,
    auth: false
},
{
    path: '/login',
    name: 'Login',
    element: <Login />,
    auth: false
},
{
    path: '/category',
    name: 'Category',
    element: <Category />,
    auth: false
},
{
    path: '/shoppingCart',
    name: 'ShoppingCart',
    element: < ShoppingCart />,
    auth: true
},
{
    path: '/personalCenter',
    name: 'PersonalCenter',
    element: <PersonalCenter />,
    auth: true
},
{
    path: '/search',
    name: 'SearchPage',
    element: <SearchPage />,
    auth: false
},
{
    path: '/myOrders',
    name: 'MyOrders',
    element: <MyOrders />,
    auth: true
},
{
    path: '/accountManagement',
    name: 'AccountManagement',
    element: <AccountManagement />,
    auth: true
},
{
    path: '/addressManagement',
    name: 'AddressManagement',
    element: <AddressManagement />,
    auth: true
},
{
    path: '/aboutUs',
    name: 'AboutUs',
    element: <AboutUs />,
    auth: true
},
{
    path: '/productDetails',
    name: 'ProductDetails',
    element: <ProductDetails />,
    auth: false
},
{
    path: '/createOrders',
    name: 'CreateOrders',
    element: <CreateOrders />,
    auth: true
},
{
    path: '/addressEdit',
    name: 'AddressEdit',
    element: < AddressEdit />,
    auth: true
},
{
    path: '/orderDetail',
    name: 'OrderDetail',
    element: < OrderDetail />,
    auth: true
},
{
    path: '/error',
    name: 'Error',
    element: <Error />,
    auth: false
},
{
    path: '/error1',
    name: 'Error1',
    element: <Error />,
    auth: false
}
]